<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<c:forEach items="${page.records }" var="article">
<!-- 图文模式 -->
<li class="media media-lg border-bottom1">
	<div class="media-left">
		<a href="${basePath}/article/detail/${article.seqId }"
			title="${article.title }" target="_self"> 
			<c:choose>
				<c:when test="${empty article.imagePath }">
					<c:set var="imagePath" value="${basePath }/images/defaultImage.png" />
				</c:when>
				<c:otherwise>
					<c:set var="imagePath" value="${basePath }/${article.imagePath }" />
				</c:otherwise>
			</c:choose>
			<img class="media-object" src="${imagePath }" alt="${article.title }" height='100' />
		</a>
	</div>
	<div class="media-body">
		<h4>
			<a
				href="${basePath}/article/detail/${article.seqId }"
				title="${article.title }" target="_self">${article.title }</a>
		</h4>
		<p class="des font-weight-300">
			${article.description }
		</p>
		<c:if test="${!empty article.provider and type eq 'collection'}">
		<p class="info font-weight-300">
			<span>${article.provider}</span>
		</p>
		</c:if>
		<p class="info font-weight-300">
			<fmt:formatDate value="${article.insertTime}" pattern="yyyy-MM-dd" var="insertTime" />
			<span>${insertTime }</span> <span></span> <span> <i
				class="icon wb-eye m-r-5 font-weight-300" aria-hidden="true"></i>
				${article.viewCounts }
			</span>
		</p>
	</div>
</li>
</c:forEach>